package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/***
 ** Create by Wedream on 2021/8/5
 *  实体：工资
 *  salary(id,city,avg_salary,year0,salary0,year1_3,salary1_3,year3_5,salary3_5,year5_10,salary5_10)
 */
@TableName("salary")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Salary {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String city;
    private Double year0;
    private Integer salary0;
    private Double year1to3;
    private Integer salary1to3;
    private Double year3to5;
    private Integer salary3to5;
    private Double year5to10;
    private Integer salary5to10;

}
